package com.yujq.demo;

public class proxy implements Rent {
    private Host host;
    public proxy(){

    }
    public proxy(Host host){
        this.host = host;
    }
    public void rent() {
        SeeHouse();
        host.rent();
        Write();
    }
    public void SeeHouse(){
        System.out.println("中介带人去看房!!");
    }
    public void Write(){
        System.out.println("中介开始签订协议！！");
    }
}
